home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / PInterfaces / ShutDown.p < prev    next >
Encoding:
Text File  |  1989-10-13  |  1.1 KB  |  55 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Tuesday, August 2, 1988 at 10:38 AM
  3.     ShutDown.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.     Copyright Apple Computer, Inc.    1987-1988
  7.     All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT ShutDown;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingShutDown}
  21. {$SETC UsingShutDown := 1}
  22.  
  23. {$I+}
  24. {$SETC ShutDownIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$SETC UsingIncludes := ShutDownIncludes}
  30.  
  31. CONST
  32. sdOnPowerOff = 1;        {call procedure before power off.}
  33. sdOnRestart = 2;        {call procedure before restart.}
  34. sdOnUnmount = 4;        {call procedure before unmounting.}
  35. sdOnDrivers = 8;        {call procedure before closing drivers.}
  36. sdRestartOrPower = 3;    {call before either power off or restart.}
  37.  
  38.  
  39.  
  40. PROCEDURE ShutDwnPower;
  41.     INLINE $3F3C,$0001,$A895;
  42. PROCEDURE ShutDwnStart;
  43.     INLINE $3F3C,$0002,$A895;
  44. PROCEDURE ShutDwnInstall(shutDownProc: ProcPtr;flags: INTEGER);
  45.     INLINE $3F3C,$0003,$A895;
  46. PROCEDURE ShutDwnRemove(shutDownProc: ProcPtr);
  47.     INLINE $3F3C,$0004,$A895;
  48.  
  49. {$ENDC}    { UsingShutDown }
  50.  
  51. {$IFC NOT UsingIncludes}
  52.     END.
  53. {$ENDC}
  54.  
  55.